<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <body>
        <!--(kev) Startseite-->
        <ui:composition template="index.xhtml">
            <ui:define name="left">

                <h:form> 
                    <h:dataTable value="">
                        <h:column>
                            <f:facet name="header">
                                View station details
                            </f:facet>
                            <h:selectOneMenu value="#{stationViewManager.stationString}">
                                <f:selectItems value="#{dataManager.getStationList()}" ></f:selectItems>
                            </h:selectOneMenu>
                            <h:commandButton value="View station details" action="viewStation"/>
                        </h:column>
                    </h:dataTable>
                </h:form>


                <h:form> 
                    <h:dataTable value="">
                        <h:column>
                            <f:facet name="header">
                                View line details
                            </f:facet>
                            <h:selectOneMenu value="#{lineViewManager.lineString}">
                                <f:selectItems value="#{dataManager.getLineList()}" ></f:selectItems>
                            </h:selectOneMenu>
                            <h:commandButton value="View line details" action="viewLine"/>
                        </h:column>
                    </h:dataTable>
                </h:form>


                <h:form> 
                    <h:dataTable value="">
                        <h:column>
                            <f:facet name="header">
                                Calculate journey
                            </f:facet>
                            <h:selectOneMenu value="#{routeCalculationManager.startStationString}">
                                <f:selectItems value="#{dataManager.getStationList()}" ></f:selectItems>
                            </h:selectOneMenu>
                            <h:selectOneMenu value="#{routeCalculationManager.destinationStationString}">
                                <f:selectItems value="#{dataManager.getStationList()}" ></f:selectItems>
                            </h:selectOneMenu>
                            <h:selectOneMenu value="#{routeCalculationManager.hour}">
                                <f:selectItems value="#{routeCalculationManager.getNumbers(24)}" ></f:selectItems>
                            </h:selectOneMenu>
                            <h:selectOneMenu value="#{routeCalculationManager.minute}">
                                <f:selectItems value="#{routeCalculationManager.getNumbers(60)}" ></f:selectItems>
                            </h:selectOneMenu>
                            <h:commandButton value="Calculate Route" action="#{routeCalculationManager.calculateRouteAction()}"/>
                        </h:column>
                    </h:dataTable>
                </h:form>


            </ui:define>
        </ui:composition>
    </body>
</html>
